<?php
/**
 * Created by PhpStorm.
 * User: zcq
 * Date: 2018/10/15
 * Time: 9:29
 */

namespace app\admin\model;


use think\Model;

class Vote extends BaseModel
{
    const TABLE = 'vote';
    public $rules = [
        'name' => 'require',
        'start' => 'require|date',
        'end'=>'require|date',
        'act_id|活动编号'=>'alphaNum',
        'vote_type'=>'require|number',
        'nums'=>'require|number',
        'per_nums'=>'require|number',
        'click_nums'=>'require|number',
        'is_ip'=>'require|number',
    ];
}